<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title></title>
	<meta name="keywords" content="">
	<meta name="description" content="">
<head>
	<link rel="stylesheet" href="/css/bootstrap.min.css" />
	<!--bootstrap图片上传插件  -->
	<link href="/fileinput/fileinput.min.css" rel="stylesheet">
	<!--风格css框架  -->
	<link href="/fileinput/theme.css" rel="stylesheet">
	<!--图标字体框架  -->
	<link href="/css/font-awesome.css?v=4.4.0" rel="stylesheet">
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
					   <input type="file" id="img"  name="img" multiple="multiple" class="file-loading" >
					</div>
				</div>
			</div>
		</div>
	</div>
		<!-- 全局js -->
	<script src="/js/jquery.min.js?v=2.1.4"></script>
	<script src="/js/bootstrap.min.js?v=3.3.6"></script>
	<script type="text/javascript" src="/fileinput/fileinput.min.js"></script>  <!--bootstrap图片上传插件  -->
	<script type="text/javascript" src="/fileinput/theme.js"></script>   <!--风格  -->
	<script type="text/javascript" src="/fileinput/zh.js"></script>      <!--汉化  -->
	<script src="/js/plugins/layer/layer.min.js"></script>   <!--layer弹框js  -->
	 <script th:inline="javascript">
		     var commId = "";
			 $("#img").fileinput({
		        language: "zh",  //国际化
		        theme: 'fa',  //显示主题
		        enctype: 'multipart/form-data',
		        uploadUrl: '/system/sowingmap/uploads?id='+5, // 上传的地址
		        showRemove : true, //是否显示移除按钮
		        showPreview : true, //是否显示预览
		        showUpload: true, //是否显示上传按钮
		        showCaption: true, //是否显示选择输入框
		        uploadAsync: false, //是否允许异步上传
		        maxFileSize:  0, //允许上传文件的大小（KB）
		        maxFilesNum:  0,  //允许上传文件的数量
		        maxFileCount: 10, //表示允许同时上传的最大文件个数
		        dropZoneEnabled: true,//是否显示拖拽区域
		        layoutTemplates :{
		            actionUpload:'',//去除上传预览缩略图中的上传图片；
		        },
		        fileType: "any",
		        previewFileIcon: "<i class='glyphicon glyphicon-king'></i>",
		    });
	</script>
</body>
</html>
